PROJNAME := x2.exe
SOURCES := x2.cpp N1Lib.cpp N1Unit.cpp N1Log.cpp N1Object.cpp N1Socket.cpp \
           N1Delegate.cpp N1Thread.cpp N1Number.cpp N1Dictionary.cpp \
           N1Data.cpp N1Array.cpp N1Exception.cpp N1String.cpp N1Date.cpp \
           N1AutoreleasePool.cpp N1ProtoData.cpp N1MLT.cpp N1SHA.cpp \
           N1DebugWin32.cpp N1Debug.cpp N1Lock.cpp N1Network.cpp N1Math.cpp \
           N1BinStream.cpp N1UnicodeString.cpp N1Ptr.cpp N1Memory.cpp \
           N1MLTDataStorage.cpp N1Localization.cpp N1File.cpp \
           N1NotificationCenter.cpp N1Trace.cpp


SOURCES += N2Lib.cpp N2Desktop.cpp N2Window.cpp N2Color.cpp N2Drawer.cpp \
           N2Region.cpp N2Palette.cpp N2Bitmap.cpp N2Geometry.cpp \
           N2Unit.cpp N2View.cpp N2Font.cpp N2MemoryDrawer.cpp \
           N2Win32Drawer.cpp N2Brush.cpp N2WorldTransform.cpp \
           N2BitmapRep.cpp







OBJECTS := $($(notdir SOURCES):.cpp=.o)
LDFLAGS =-lws2_32 -lstdc++ -ldbghelp -lpsapi -lshell32 -lgdi32
CFLAGS += -I. -I./N0Lib -Wall -g -D_WIN32_IE=0x0400

%.o : %.cpp
	$(CC) $(CFLAGS) $(CCFLAGS) -c $<

all: $(OBJECTS)
	$(CC)  -o $(PROJNAME) $(OBJECTS) $(LDFLAGS)

test: $(OBJECTS)
	$(CC) -o $(PROJNAME) $(OBJECTS) $(LDFLAGS) 

.PHONY: clean

clean:
	@rm -f *.o *.exe
